package functions;

/**
 * Class for function f(x) = cos(x)
 * @author Patrick Bauer
 */
public class cosX extends AbstractPanel {
    public cosX(int colorScheme) {
        super(colorScheme);
        this.setToolTipText("f(x) = cos(x) von x = -10.0 bis x = 10.0");
    }

    @Override
    public double getY(double x) {
        return Math.cos(x);
    }    
   
}
